<?php
class TestModel extends Model{
    // 自动验证设置
    protected $_validate = array(
        array('name','require','用户名必须填写！',1),
        //array('email','email','邮箱格式错误！',2),
        array('name','','用户名已经存在！',0,'unique',1),
    );
    //自动填充设置
    protected $_auto = array(
        //array('reg_date','date(y-m-d H:i:s, time ())',self::MODEL_INSERT,'function'),
        array('password','md5',self::MODEL_INSERT,'function'),
    );
}